#include<stdio.h>

int count(int n);

int main()
{
    printf("%d\n", count(9));    

    return 0;
}


int count(int n)
{
    int res = 0;
    int i;

    for (i = 1; i <= 100; ++i) /*i is loop variable*/
    {
        if (i % 10 == n || i / 10 == n)
        {
            ++res; /*res is accumulator*/
        }
    }

    return res;
}
